
			
			<div class="container">
				<div class="zone-form">
                <div class="page-header" style="position:relative;">
					<h3>Add Zone </h3>
                </div>
					<?php echo form_open('zones/add','class ="form-horizontal" ', 'id = "zone-form"'); ?>
    					<div class="control-group">
							<label class="control-label" for="name">Zone Name<span style="color: red;">*</span></label>
							<div class="controls">
								<input type="text" name="name" id="name" value="<?php echo set_value('name'); ?>"/>
                                <label class="error"><?php echo form_error('name'); ?></label>
							</div>
						</div>
                        <hr />
                        <div class="control-group">
							<label class="control-label" for="code">Zone Code<span style="color: red;">*</label>
							<div class="controls">
								<input type="text" name="code" id="code" class="input-mini" value="<?php echo set_value('code'); ?>"/>
                                <label class="error"><?php echo form_error('code'); ?></label>
							</div>
						</div>
                        <hr />
                         <div class="control-group">
							<label class="control-label" for="country_id">Country<span style="color: red;">*</label>
							<div class="controls">
                            <?php $country = $this->zones_model->get_countries(); ?>
								<select name="country_id">
                                <?php foreach($country as $valc){ ?>
        							<option value="<?php echo $valc->country_id ?>" <?php echo set_select('country_id',$valc->country_id); ?> ><?php echo $valc->name ?></option>
                                <?php } ?>
            					</select>
                                <label class="error"><?php echo form_error('country_id'); ?></label>
							</div>
						</div>
                        <hr />
                        <div class="control-group">
							<label class="control-label" for="status">Status</label>
							<div class="controls">
								<select name="status">
        							<option value="1" selected="selected">Enabled</option>
               						<option value="0">Disabled</option>
            					</select>
                                <label class="error"><?php echo form_error('status'); ?></label>
							</div>
						</div>
                        <div class="form-actions">
 							<input class="btn btn-primary" id="submit" type="submit" value="Save Zone" />
							<input class="btn" id="cancel" type="button" name="cancel" value="Cancel" onclick="self.history.back()" />    
                        </div>
					<?php echo form_close(); ?>
				</div>
			</div>


